home *** CD-ROM | disk | FTP | other *** search
Makefile | 1996-09-20 | 4.1 KB | 104 lines | [TEXT/MPS ] |
- #
- # makefile for "InstallFatApp.r", the example for InstaCompOne font compression
- #
- #
- # to build installer script :
- # 1) select "Build" from "Build" menu
- # 2) type script name "InstallFatApp" ( note: ".r" is omitted )
- #
- # to build debug version of installer script :
- # 1) select "Build" from "Build" menu
- # 2) type script name "InstallFatApp.debug" ( note: ".r" is omitted )
- #
- #
- #
-
- # • script names
- scriptName = InstallFatApp
- debugScriptName = {scriptName}.debug
- localScriptCheckExtName = {scriptName}.scx
-
- sourceFile = CheckIfInternalRuleFunc
-
- OBJECTS = CheckIfInternalRuleFunc.c.o
-
- # • directories and tool names
- ScriptCheckDir = :::Tools:Released:ScriptCheck 4.0.3:
- InstallerCIncDir = :::DeveloperInterfaces:CIncludes:
- InstallerCSrcDir = :::DeveloperInterfaces:CSources:
- InstallerRIncDir = :::DeveloperInterfaces:RIncludes:
- InstallerDebuggerDir = :::Tools:Released:Installer Debugger 4.0.3:
- InstaCompOneDir = :::Tools:Released:InstaCompOne 1.1:
-
- compressTool = {InstaCompOneDir}InstaCompOneTool
-
- # NOTE: The source file for the compression command should have the
- # same file type and creator as the resulting target application, since
- # this decompression will be performed via file atom. InstaCompOne looks
- # for an entry in the file archive that has matching filename, type and
- # creator as the target spec ( 'intf' ) of the file atom ( 'infa' ).
- # Filename can be modified using the -f option with InstaCompOneTool,
- # but the file type and creator must be correct already in the source file.
- PowMacDataForkSrcName = :Source Files:PowMac Data Fork
- PowMacEntryName = ModApp
- PowMacArchiveName = :Disk 1:PowMacFileArchive
-
- PowMacRsrcForkSrcName = :Source Files:PowMac Rsrc Fork
- PowMacRsrcForkTgtName = :Disk 1:Power Macintosh Part
-
- 68KRsrcForkSrcName = :Source Files:68K Macintosh Part
- 68KArchiveName = :Disk 1:68KRsrcArchive
-
- CommonResourcesSrcName = :Source Files:Common Part
- CommonResourcesName = :Disk 1:Common Part
-
- PowMacWarnOn68KSrcName = :Source Files:PowerMacWarnOn68K Part
- PowMacWarnOn68KName = :Disk 1:PowerMacWarnOn68K Part
-
- ScriptCheckExtension = {InstaCompOneDir}InstaCompOneSCExt.rsrc
-
- COptions = -b -r -sym off
- LinkOptions = -mf -sym off
-
- "{debugScriptName}" ƒ "{scriptName}"
- Duplicate -y "{scriptName}" "{scriptName} w/ Debugger"
- Rez -m "{InstallerDebuggerDir}Installer Debugger.r" -append -o "{scriptName} w/ Debugger"
-
- "{scriptName}" ƒƒ "{sourceFile}" "{scriptName}.r" "{PowMacArchiveName}" "{PowMacRsrcForkTgtName}" "{68KArchiveName}" "{CommonResourcesName}" "{PowMacWarnOn68KName}" "{localScriptCheckExtName}"
- set theTime "'`date -d -s` 12:00:00 PM'"
- Rez "{scriptName}.r" -o "{scriptName}" -t 'kajr' -c 'kajr' -i "{InstallerRIncDir}"
- SetFile -a b -d {theTime} "{scriptName}"
- "{ScriptCheckDir}ScriptCheck" "{scriptName}" -h -d -a
- SetFile -m {theTime} "{scriptName}"
-
-
- "{sourceFile}" ƒ "{OBJECTS}"
- Link {LinkOptions} -t rsrc -c RSED -rt infn=143 -m CheckIfInternalRuleFunc -sg "{sourceFile}" ∂
- "{OBJECTS}" ∂
- -o "{sourceFile}"
-
- "{sourceFile}.c.o" ƒ "{sourceFile}.c"
- SC {COptions} "{sourceFile}.c" -i "{InstallerCIncDir}"
-
- "{PowMacArchiveName}" ƒ "{PowMacDataForkSrcName}" "{CommonResourcesName}"
- "{compressTool}" "{PowMacDataForkSrcName}" -f "{PowMacEntryName}" -o "{PowMacArchiveName}"
- echo "include ∂"{CommonResourcesName}∂" 'vers';" | Rez -append -o "{PowMacArchiveName}"
-
- "{68KArchiveName}" ƒ "{68KRsrcForkSrcName}"
- "{compressTool}" "{68KRsrcForkSrcName}" -k 'CODE'=0 -a 'part'=0 -o "{68KArchiveName}"
- "{compressTool}" "{68KRsrcForkSrcName}" -k 'CODE'=1 -a 'part'=1 -o "{68KArchiveName}"
- "{compressTool}" "{68KRsrcForkSrcName}" -k 'CODE'=2 -a 'part'=2 -o "{68KArchiveName}"
-
- "{PowMacRsrcForkTgtName}" ƒ "{PowMacRsrcForkSrcName}"
- duplicate -y -r "{PowMacRsrcForkSrcName}" "{PowMacRsrcForkTgtName}"
-
- "{CommonResourcesName}" ƒ "{CommonResourcesSrcName}"
- duplicate -y -r "{CommonResourcesSrcName}" "{CommonResourcesName}"
-
- "{PowMacWarnOn68KName}" ƒ "{PowMacWarnOn68KSrcName}"
- duplicate -y -r "{PowMacWarnOn68KSrcName}" "{PowMacWarnOn68KName}"
-
- "{localScriptCheckExtName}" ƒ "{ScriptCheckExtension}"
- Duplicate -y "{ScriptCheckExtension}" "{localScriptCheckExtName}"
-
-